<div ng-include src="'header.html'"></div>

<div class="table-header mt20 clearfix">
    <span class="fl lh30 f14">奖励列表</span>
    <div class="fr btn-group">

        <a href="javascript: void(0)" class="btn permission p-50030605-01-block" ng-click="brokerage.showBatchApprove()">批量审定</a>
        <a href="javascript: void(0)" class="btn btn-yellow permission p-50030605-99-block"
           ui-dialog="邀请成交奖励导入"
           ui-dialog-url="dialog/import.html"
           ui-dialog-init="initImport($data)"
           ui-dialog-ok="importData($data)">导入奖励</a>
        <a href="javascript: void(0)" class="btn btn-yellow permission p-50030605-99-block" ng-click="baseData.exportData()">导出</a>
    </div>
</div>
<div id="grid" class="table-wrap mt10">
    <table width="100%">
        <thead>
            <tr>
                <th style="padding-top: 3px;">
                    <input type="checkbox" ui-checkbox="序号"
                           ng-change="query.updateCheckAll()"
                           ng-model="query.checkAll">
                </th>
                <th>被邀请经纪人</th>
                <th>成交金额</th>
                <th>佣金信息</th>
                <th>经纪人信息</th>
                <th>身份信息</th>
                <th>邀请经纪人成交奖励</th>
                <th>奖励产生时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="record in query.data"
                ng-mouseover="record.hover = true"
                ng-mouseleave="record.hover = false">
                <td height="80">
                    <input type="checkbox" ui-checkbox="{{((query.pageIndex - 1) * query.pageSize) + $index + 1}}"
                           ng-change="query.updateCheck(record)"
                           ng-model="record.checked">
                </td>
                <td>
                    <p><span ng-bind="record.broker_name1"></span>（<span ng-bind="record.genderText1"></span>）</p>
                    <p ng-bind="record.mobile_tel1"></p>
                </td>
                <td>
                    <p ng-bind="record.cj_price | number"></p>
                </td>
                <td>
                    <p>佣金总额：<span ng-bind="record.sum_amount | number"></span></p>
                    <p>结佣状态：<span ng-bind="record.ffstatus"></span></p>
                </td>
                <td>
                    <p><span ng-bind="record.broker_name2"></span>（<span ng-bind="record.genderText2"></span>）</p>
                    <p><span ng-bind="record.mobile_tel2"></span></p>
                    <p class="c-gray">证件号码：<span ng-bind="record.cre_no"></span></p>
                </td>
                <td>
                    <p><span ng-bind="record.Text"></span></p>
                    <p class="c-gray ng-hide" ng-show="!!record.BelongsCompanyText">所属公司：<span ng-bind="record.BelongsCompanyText"></span></p>
                </td>
                <td>
                    <p ng-bind="record.amount | number"></p>
                </td>
                <td>
                    <p ng-bind="record.CreatedOn | strdate"></p>
                </td>
                <td>
                    <p class="ng-hide" ng-show="record.hover">
                        <a href="javascript: void(0)" class="c-orange permission p-50030605-01-inline-block"
                           ui-dialog="奖励审定"
                           ui-dialog-data="record"
                           ui-dialog-ok="brokerage.approve($data)"
                           ui-dialog-url="dialog/approve.html">审定</a>
                    </p>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="no-data ng-hide" ng-show="!query.hasData"><span>暂无数据</span></div>
</div>

<div ng-include src="'footer.html'"></div>
